package com.ioc.barry.lsn_8_pathmeasure;

import android.app.Activity;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;

public class MainActivity extends Activity {

    private float progress = 0f;
    private LoadingView mLoadingView;
    private WaveView mWaveView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
//        setContentView(R.layout.activity_main);
//        mLoadingView = (LoadingView) findViewById(R.id.loadingview);
//        mLoadingView.setOnClickListener(new View.OnClickListener() {
//            @Override
//            public void onClick(View v) {
//                new Thread(new Runnable() {
//                    @Override
//                    public void run() {
//                        while (progress <= 100){
//                            progress += 2;
//                            mLoadingView.setProgress(progress / 100);
//
//                            try {
//                                Thread.sleep(100);
//                            } catch (InterruptedException e) {
//                                e.printStackTrace();
//                            }
//                        }
//
//                    }
//                }).start();
//
//            }
//        });
//        setContentView(new LoadingView(this));
        //setContentView(new LoadView2(this));
        setContentView(new PathMeasureView(this));
        //setContentView(new LoadingView1(this));
//        mWaveView = new WaveView(this);
//        setContentView(mWaveView);
//        mWaveView.startAnimation();
    }
}
